{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>主题列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
		<div class="ibox-content">
			<div class="hr-line-dashed" style="margin: 3px;"></div>
			<a href="{:url('add')}" class="btn btn-xs btn-primary">添加</a>
        	<div class="example-wrap">
                <div class="example">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">ID</th>
								<th>主题名称</th>
								<th>图片</th>
								<th>添加时间</th>
								<th>排序</th>	
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="vo"}
							<tr>
								<td class="text-center">{$vo.id}</td>
								<td>{$vo.name}</td>
								<td class="text-center"><img src="{$vo.thumb}" width="50px"/></td>
								<td class="text-center">{$vo.add_time}</td>
								<td class="text-center">{$vo.sort}</td>		
								<td class="text-center">
									<a href="{:url('edit',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									<a href="{:url('delete',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>

{/block}
